<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<%--
  Created by IntelliJ IDEA.
  User: wagger
  Date: 2019/06/02
  Time: 下午 11:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8"/>
    <title>Traveler Blog -->文章管理</title>
    <link rel="stylesheet" type="text/css" href="/client/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="/client/css/main.css"/>
    <link href="/client/css/bootstrap.min.css" type="text/css" rel="stylesheet">
    <link href="/client/css/style.css" type="text/css" rel="stylesheet">
    <link type="text/css" href="/client/css/nprogress.css" rel="stylesheet">
    <link rel="shortcut icon" href="/client/images/tou.ico">
</head>
<body>
<jsp:include page="/client/head.jsp"/>
<div class="main-wrap">
    <div class="result-wrap">
        <form name="myform"  method="post">
            <div class="result-content">
                <table class="result-tab" width="100%">
                    <tr>
                        <th>ID</th>
                        <th>内容</th>
                        <th>发布人</th>
                        <th>发布时间</th>
                        <th>操作</th>
                    </tr>
                    <tbody id="showPorducts">
                    <c:forEach items="${commentsList}" var="cl">
                        <tr >
                            <td>${cl.cid}</td>
                            <td style="overflow: hidden;height: 32px;">${cl.cpage}</td>
                            <td>${cl.user.username}</td>
                            <td><fmt:formatDate value="${cl.ctime}" pattern="yyyy-MM-dd"/></td>
                            <td>
                                <a class="link-del" href="${pageContext.request.contextPath}/admin/deleteComments.do?cid=${cl.cid}">删除</a>
                            </td>
                        </tr>
                    </c:forEach>
                    </tbody>
                </table>
            </div>
        </form>
    </div>
</div>
</body>
</html>
